<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Ajax test</title>
<script type="text/javascript" src="ajax.js"></script>
<script type="text/javascript" src="base.js"></script>
<script type="text/javascript" src="datepicker.js"></script>
<script type="text/javascript">
	DOM.domReady(function(){
		Event.addEvent($('clickHere'), 'click', function(){
			ajax({
				// Over domain, only for IE
				// url : 'http://www.163.com',
				url : 'datepicker.html',
				onSuccess : function(html) {$('datepicker').innerHTML = html;},
				indicator : '<img src="images/indicator.gif" />'
			});
		});
	});
</script>
<style type="text/css">
	#clickHere {
		cursor: pointer;
	}
</style>
</head>
<body>
<span id="clickHere">Click here</span>
<div id="datepicker" style="height: 500px; border: 1px solid #ccc;">
<div>
</body>
</html>